<ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      template="template.xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
    </h:head>
    <body id="body" >
        <p:messages />
        <div>Showing Credit</div>
        
        <ui:define name="meta" >
            <f:metadata>
                <f:viewParam name="id"  value="#{creditView.selectedCreditId}" />
            </f:metadata>
        </ui:define>
        
        <ui:define name="content" >
            
            
            <h:form>
                <p:panelGrid columns="2" >
                    
                    <p:outputLabel value="Id" />
             <p:outputLabel value="#{creditView.currentCredit.id}" />
             <p:outputLabel value="image" />
             <p:graphicImage value="/resources/images/#{creditView.currentCredit.id}.png" height="300px" width="300px" />

                </p:panelGrid>
            </h:form>
        
        </ui:define>
    </body>

    
    
</ui:composition>
